package com.wang.lotterysystem.controller.param.user;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
public class UserRegisterParam implements Serializable { //实现序列化接口

    @Schema(description = "用户名")
    @NotBlank(message = "用户名不能为空")
    private String name;

    @Schema(description = "邮箱")
    @NotBlank(message = "邮箱不能为空")
    private String mail;

    @Schema(description = "手机号")
    @NotBlank(message = "手机号不能为空")
    private String phoneNumber;

    @Schema(description = "密码")
    private String password;

    @Schema(description = "身份")
    @NotBlank(message = "用户身份不能为空")
    private String identity;
}